<script language="javascript">
	function del(id){
		if(confirm('Bạn có muốn xóa liên hệ này ?')){
			location.href='<?php echo $this->_baseUrl;?>/admin/contact/delete/id/'+id;
		}
	}
 </script>
<div id="toolbar" >
  <div class="right-toolbar">
  <a title="Gửi email trả lời">
  <button onclick="location.href='<?php echo $this->_baseUrl;?>/admin/sendemail/e/<?php echo $this->result[0]['email'];?>'">
  <img src="<?php echo $this->_baseUrl;?>/public/images/web/all_email.png" height="32px" width="32px"/>
  <span><p>Trả lời</p></span>
  </button>
  </a>
  <a title="Xóa liên hệ này">
  <button onclick="del(<?php echo $this->result[0]['contact_id'];?>)">
  <img src="<?php echo $this->_baseUrl;?>/public/images/web/big_delete.png" height="32px" width="32px"/>
  <span><p>Xóa</p></span>
  </button>
  </a>
  </div>
  <div class="left-toolbar">
  <img src="<?php echo $this->_baseUrl;?>/public/images/web/contact.png" height="48px" width="48px"/>
  <span>Đọc liên hệ</span>
  </div>
</div>

<div id="box-content">
  <div id="title-contact">
      <?php echo $this->result[0]['title'];?>
  </div>
  <div id="header-contact">
  <p>Từ   : <?php echo $this->result[0]['fullname'];?> &lt;<?php echo $this->result[0]['email'];?>&gt;</p>  
  <p>Ngày : <?php echo date('d/m/Y  H:i',strtotime($this->result[0]['date_sent']));?></p>
  </div>
  <div id="content-contact">
  <?php echo $this->result[0]['content']; ?>
  </div>
</div>